FROM alpine:3.20

ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"
ENV LC_ALL="en_US.UTF-8"
ENV TZ="Asia/Shanghai"
ENV PS1='[in_container]\[\e[1;31m\]\u\[\e[0;37m\]@\[\e[1;33m\]\h\[\e[1;37m\]:\[\e[1;34m\]$(pwd)\[\e[1;31m\] # \[\e[0m\]'

RUN apk --no-cache add \
        bash \
        vim \
        jq \
        net-tools \
        bind-tools \
        curl \
        busybox-extras \
        wget \
        tcpdump \
        openssl \
        fio \
        git \
    && rm -rf /var/cache/apk/* \
    && rm -rf /root/.cache \
    && rm -rf /root/.cargo \
    && unlink /sbin/poweroff \
    && unlink /sbin/reboot \
    && echo -e "alias ll='ls -lah'\nalias tailf='tail -f'" >> ~/.bashrc
